
package org.springxrsk.modules.signup.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.signup.pojo.entity.QyStudentsOrderBelongEntity;
import org.springxrsk.modules.signup.pojo.vo.QyStudentsOrderBelongVO;
import java.util.Objects;

/**
 * 订单业绩归属 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-19
 */
public class QyStudentsOrderBelongWrapper extends BaseEntityWrapper<QyStudentsOrderBelongEntity, QyStudentsOrderBelongVO>  {

	public static QyStudentsOrderBelongWrapper build() {
		return new QyStudentsOrderBelongWrapper();
 	}

	@Override
	public QyStudentsOrderBelongVO entityVO(QyStudentsOrderBelongEntity qyStudentsOrderBelong) {
		QyStudentsOrderBelongVO qyStudentsOrderBelongVO = Objects.requireNonNull(BeanUtil.copyProperties(qyStudentsOrderBelong, QyStudentsOrderBelongVO.class));

		//User createUser = UserCache.getUser(qyStudentsOrderBelong.getCreateUser());
		//User updateUser = UserCache.getUser(qyStudentsOrderBelong.getUpdateUser());
		//qyStudentsOrderBelongVO.setCreateUserName(createUser.getName());
		//qyStudentsOrderBelongVO.setUpdateUserName(updateUser.getName());

		return qyStudentsOrderBelongVO;
	}


}
